/**
 * 
 */
package com.bolbachchan.blog.service.posts;

import java.util.List;

import com.bolbachchan.blog.dto.NewPostDTO;
import com.bolbachchan.blog.dto.PostDTO;
import com.bolbachchan.blog.hibernate.domain.Posts;

/**
 * @author Chaitanya
 * 
 */
public interface UserPostsService {

    /**
     * @param dto
     */
    @Deprecated
    public void saveNewPost(NewPostDTO dto);

    /**
     * @param post
     */
    public void saveNewPost(Posts post);

    /**
     * @param dto
     */
    @Deprecated
    public void updatePost(PostDTO dto);

    /**
     * @param post
     */
    public void updatePost(Posts post);

    /**
     * @param dto
     * @return
     */
    @Deprecated
    public List<Posts> getPostsByUserId(PostDTO dto);

    /**
     * @param userId
     * @return
     */
    public List<Posts> getPostsByUserId(int userId);

    /**
     * @param objId
     * @return
     */
    public Posts getPostsByPostId(int objId);
}
